@import '~ant-design-vue/es/style/themes/default.less';

@sideWidth: 200px;
@headerHeight: 60px;
@wrapWidth: 1200px;


/*文本格式化，超出范围，显示省略号*/
//  .cell(@width: 100%, @display: block, @index: 1) {
//    width: @width;
//    display: @display;
//    white-space: nowrap;
//    -ms-text-overflow: ellipsis;
//    text-overflow: ellipsis;
//    overflow: hidden;
//    -webkit-line-clamp: @index;
//  }
//文字溢出不换行
//  .cell(@line: 2) {
//    overflow: hidden;
//    text-overflow: ellipsis;
//    display: -webkit-box;
//    -webkit-line-clamp: @line;
//    -webkit-box-orient: vertical;
//  }

.cell-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  //display: inline-block;
}

.cell-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  //  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  display: inline-block;
}


.cell-3 {
  overflow: hidden;
  text-overflow: ellipsis;
  //  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  white-space: nowrap;
  display: inline-block;
}


.page-warp {
  width: 1124px;
  margin: 0 auto;
}


.scroll::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 6px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

.scroll::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 3px;
  //  background: #1890ff;
  background: @primary-color;
  //  background-image: -webkit-linear-gradient(45deg,
  //      rgba(255, 255, 255, 0.2) 25%,
  //      transparent 25%,
  //      transparent 50%,
  //      rgba(255, 255, 255, 0.2) 50%,
  //      rgba(255, 255, 255, 0.2) 75%,
  //      transparent 75%,
  //      transparent);
}

.scroll::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  //  background: #ededed;
  background: #eee;
  border-radius: 10px;
}

.ant-input-suffix {
  color: #fff !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.user-page-wrapper {
  background: #fff;
  overflow: auto;
  margin: 24px;
  flex: 1;
  border-radius: 5px;
}

.page-wrapper {
  background: #fff;
  overflow: auto;
  margin: 24px;
  flex: 1;
  border-radius: 5px;
}

.text-button {
  color: @primary-color;
  cursor: pointer;
}


.shadow {
  box-shadow: 2px 2px 10px -2px #e4e4e4;
}

.shadow-hover:hover {
  box-shadow: 5px 5px 5px 0px rgb(224, 215, 215);
}

.form-bottom {
  .ant-form-item {
    margin-bottom: 10px !important;
  }
}

.form-erreo {
  color: #EC7070;
}

.red {
  color: #EC7070;
}

.lan {
  color: #499ddc;
}

.lan-main-bg {
  background: #1890ff;
}

.lan-main-color {
  color: #1890ff;
}


.bottom_tip {
  font-size: 13px;
  margin-top: 5px;
  padding-right: 30px;
  line-height: 18px;
}


// 居中
.position-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.flex-column {
  flex-direction: column;
}

// 居中
.display-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

// 水平对齐
.flex-align-center {
  display: flex;
  align-items: center;
}

// 两端对齐
.flex-justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


// 表单
.form-pad {
  .ant-slider {
    margin: 0;
    padding: 0;
  }

  .ant-form-item {
    margin-bottom: 10px !important;
  }

  .ant-slider-rail {
    height: 14px !important;
    //  background: #8bd2e8;
  }

  .ant-form-item-label {
    // line-height: 26px;
  }

  .ant-slider-track {
    height: 14px !important;
    border-radius: 0 !important;
  }

  .ant-slider-step {
    height: 14px !important;
  }

  .ant-slider-handle {
    margin-top: -2px !important;
    border-radius: 0 !important;
    height: 18px !important;
  }
}

// 有多选框
// 表格三角形 状态显示
.triangular-state-box {
  position: relative;

  .triangular-state {
    position: absolute;
    top: -42px;
    //  left: -8px;
    left: -68px;
    background: #1890ff;
    color: #fff;
    padding: 0 10px;
    z-index: 10;
    display: inline-block;
    font-size: 12px;
  }

  .triangle {
    position: absolute;
    top: -24px;
    left: -68px;
    width: 0;
    height: 0;
    border: 10px solid;
    border-color: #1890ff transparent transparent #1890ff;
    display: inline-block;
    transition: all 1s linear;
  }

  .triangular-state-1 {
    background: #6e9587;
  }

  .triangle-2 {
    border-color: #6e9587 transparent transparent #6e9587;
  }
}

// 描述列表  label 宽度

.descriptions-100 {
  .ant-descriptions-item-label {
    width: 100px !important;
  }
}

.descriptions-160 {
  .ant-descriptions-item-label {
    width: 160px !important;
  }
}

.descriptions-label-right {
  .ant-descriptions-item-label {
    text-align: right;
  }
}


.descriptions-300 {
  .ant-descriptions-item-label {
    width: 300px !important;
  }
}


.descriptions-200 {
  .ant-descriptions-item-label {
    width: 200px !important;
    background: #fff !important;
  }

  .ant-descriptions-title {
    margin-bottom: 6px;
  }
}

.descriptions-200-hui {
  .ant-descriptions-item-label {
    width: 200px !important;
  }

  .ant-descriptions-title {
    margin-bottom: 6px;
  }
}

.descriptions-right {
  .ant-descriptions-item-label {
    text-align: right;
  }
}

.hint-text {
  color: #9b9b9b;
  font-size: 12px;
}

.zeng-color {
  color: #f88014;
}

.jian-color {
  color: #6ca759;
}